<template>
  <div>
    <MainContent title="系统配置" back>
      <div class="sys-config-box"></div>
      <el-tabs>
        <el-tab-pane v-for="(item, idx) in configList" :key="idx" :label="item.name">
          <template v-if="item.label == '1'">
            <platform></platform>
          </template>
          <template v-if="item.label == '2'">
            <ipConfigList></ipConfigList>
          </template>
          <template v-if="item.label == '3'">
            <configSetting></configSetting>
          </template>
        </el-tab-pane>
      </el-tabs>
    </MainContent>
  </div>
</template>

<script setup lang="ts">
import platform from "./platform.vue";
import ipConfigList from "./ipConfigList.vue";
import configSetting from "./configSetting.vue"

const configList = ref([
  { name: "平台配置", label: "1" },
  { name: "IP限制配置", label: "2" },
  { name: "开发配置", label: "3" },
]);

onBeforeMount(() => {});
</script>

<style lang="scss" scoped>
.sys-config-box {
  padding-top: 10px;
  .foucs-tabs {
    margin-top: 20px;
  }
}
</style>
